package com.tencent.sr.iris.basic.saas.common.enums;

public enum IrisPromoteStatusEnum {
    EXECUTING(1, "贡献中"),
    COMPLETE(2, "已结束");


    private Integer status;

    private String desc;

    IrisPromoteStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public Integer getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }

    public static String getByStatus(Integer status) {
        for (IrisPromoteStatusEnum irisPromoteStatusEnum : IrisPromoteStatusEnum.values()) {
            if (irisPromoteStatusEnum.getStatus().equals(status)) {
                return irisPromoteStatusEnum.getDesc();
            }
        }
        return "";
    }
}
